package testingActivityDeleteAfter;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;

import com.triptogether.baseclasses.BaseActivity;
import com.triptogether.trip.fragments.TripMainFragment;

public class TripTabsTestingActivity extends BaseActivity {
	
	TripMainFragment tripMainFragment;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		// Get the FragmentManager
		FragmentManager fragmentManager = getSupportFragmentManager();

		if(savedInstanceState == null) {
			tripMainFragment = new TripMainFragment();
			
			// Add the Fragment to the content
			fragmentManager.beginTransaction().add(android.R.id.content,
			        tripMainFragment).commit();
		} else {
			tripMainFragment = (TripMainFragment) fragmentManager.findFragmentById(android.R.id.content);
		}
	};
}
